<template>
  <div id="app">
    <Nav @closeTxtView="closeSongDetailViews"></Nav>
    <router-view></router-view>
    <Audio v-if="!$route.meta.noShow" ref="Audio"></Audio>
  </div>
</template>

<script>
import Audio from '@/components/Audio/Audio.vue'
import Nav from '@/components/TopBar/Nav.vue'

export default {
  name: 'APP',
  data() {
    return {
      isClose: false
    }
  },
  methods: {
    closeSongDetailViews() {
      if (!this.$refs.Audio) return
      this.$refs.Audio.routerAndClose(this.isClose)
    }
  },
  components: {
    Audio,
    Nav
  }
}
</script>
<style lang="less" scoped>
* {
  margin: 0;
  padding: 0;

  ::-webkit-scrollbar {
    width: 7px;
  }

  /* 滚动条的滑块 */
  ::-webkit-scrollbar-thumb {
    background-color: #a1a3a9;
    border-radius: 4px;
  }
}

#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  padding-bottom: 70px;
  width: 100%;
  // height: 100%;
  // overflow: auto;
}
</style>
